package Model;

import java.util.Observable;
/**
 * 
 * @author KOK Leng-Steven & RIEU Simon
 */
public class Avatar extends Observable
{
    private Character character;
    
    /**
     * Constructeur d'un avatar
     * @param character 
     */
    public Avatar(Character character)
    {
        this.character = character;
    }
    
    /**
     * 
     * @return le champ de vision de l'avatar
     */
    public int getViewField() 
    {
        return this.character.getViewField();
    }

    /**
     * Modifie le champ de vision de l'avatar
     * @param viewField nouvelle valeur du champ de vision
     */
    public void setViewField(int viewField) 
    {
        this.character.setViewField(viewField);
    }

    /**
     * 
     * @return 
     */
    public int getI() 
    {
        return this.character.getI();
    }

    /**
     * 
     * @param i 
     */
    public void setI(int i) 
    {
        this.character.setI(i);
    }
    
    /**
     * 
     * @param i
     * @param j 
     */
    public void setIJ(int i, int j) 
    {
        this.character.setIJ(i,j);
        this.setChanged();
        this.notifyObservers();
    }

    /**
     * 
     * @return 
     */
    public int getJ() 
    {
       return this.character.getJ();
    }

    /**
     * 
     * @param j 
     */
    public void setJ(int j) 
    {
        this.character.setJ(j);
    } 
}
